package com.pl.lc.app.controller;

import com.pl.lc.app.service.PayFeign;
import com.pl.lc.common.param.PayAdd;
import com.pl.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @version 1.0
 * @Author 小胤
 * @Date 2024/6/12 14:37
 * @注释
 */
@RestController
@RequestMapping("/api/user/wallet")
public class PayController {
    @Autowired
    private PayFeign payFeign;
    @RequestMapping("/create")
    public R create(@RequestBody PayAdd payAdd){
        return  payFeign.create(payAdd);
    }
    @RequestMapping("/my")
    public R my(){
        return payFeign.my();
    }
}
